<?php
$member_info = get_member_info(intval($_SESSION["login"]["id"]));
//ACTION UPDATE
update_info_member();
?>
<div class="container">
    <div class="content_mb">
        <?php include_once 'inc/left.php';?>

        <div class="content_mb_r">

            <?php include_once 'inc/post_property_top_center.php';?>
            <div style="margin-left: 20px;">
                <div class="title_mb_r3">[Thông tin tài khoản]</div>
                <div class="line_mb_r">
                    <ul>
                        <li>
                            <div class="line_left">[Tên đăng nhập]:</div>
                            <div class="line_right"><?php echo $_SESSION["login"]["username"];?></div>
                        </li>
                        <li>
                            <div class="line_left">Email:</div>
                            <div class="line_right"><?=$member_info["email"]?></div>
                        </li>

                        <?php
                        if(!empty($member_info["fullname"])) {

                            echo "<li>";
                            echo "<div class='line_left'>[Họ & tên] :</div>";
                            echo "<div class='line_right'>".$member_info["fullname"]."</div>";
                            echo "</li>";

                        }

                        if(!empty($member_info["company"])) {

                            echo "<li>";
                            echo "<div class='line_left'>[Tên công ty] :</div>";
                            echo "<div class='line_right'>".$member_info["company"]."</div>";
                            echo "</li>";
                        }

                        if(!empty($member_info["address"])) {

                            echo "<li>";
                            echo "<div class='line_left'>[Địa chỉ] :</div>";
                            echo "<div class='line_right'>".$member_info["address"]." ".get_geo_name($member_info["city_id"])."</div>";
                            echo "</li>";
                        }

                        if(!empty($member_info["phone"])) {

                            echo "<li>";
                            echo "<div class='line_left'>[Điện thoại] :</div>";
                            echo "<div class='line_right'>".$member_info["phone"]."</div>";
                            echo "</li>";
                        }

                        if(!empty($member_info["mobile"])) {

                            echo "<li>";
                            echo "<div class='line_left'>[Di động] :</div>";
                            echo "<div class='line_right'>".$member_info["mobile"]."</div>";
                            echo "</li>";
                        }

                        if(!empty($member_info["yahoo"])) {

                            echo "<li>";
                            echo "<div class='line_left'>[Nick Yahoo] :</div>";
                            echo "<div class='line_right'>".$member_info["yahoo"]."</div>";
                            echo "</li>";
                        }

                        if(!empty($member_info["skype"])) {

                            echo "<li>";
                            echo "<div class='line_left'>[Nick Skype] :</div>";
                            echo "<div class='line_right'>".$member_info["skype"]."</div>";
                            echo "</li>";
                        }

                        if(!empty($member_info["website"])) {

                            echo "<li>";
                            echo "<div class='line_left'>Website :</div>";
                            echo "<div class='line_right'>".$member_info["website"]."</div>";
                            echo "</li>";
                        }

                        if(!empty($member_info["about"])) {

                            echo "<li>";
                            echo "<div class='line_left'>[Giới thiệu] :</div>";
                            echo "<div class='line_right'>".$member_info["about"]."</div>";
                            echo "</li>";
                        }
                        ?>

                    </ul>
                </div>
            </div>
        </div>

    </div>
</div>